﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Script.Services;

namespace AspWebTest
{
    /// <summary>
    /// WebServiceSample 的摘要说明
    /// </summary>

    // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消对下行的注释。
    [ScriptService]
    public class WebServiceSample : System.Web.Services.WebService
    {

        public WebServiceSample()
        {

            //Uncomment the following line if using designed components 

            //InitializeComponent(); 

        }


        [WebMethod]
        public string EchoString(String s)
        {
            return "Hello " + s;
        }

    }
}
